package com.example.springboottestgit.bean.dto;

import lombok.Data;

/**
 * @description:
 * @author: ZZZ
 */
@Data
public class PurchasePackageDTO {

    //采购包名称
    private String 采购包名称;
    private String name;

    //预算金额
    private String 采购包预算金额;
    private double budgetAmount;

    //保证金金额
    private String 采购包保证金金额;
    private double marginAmount;

    //内容
    private String 内容;
    private String content;

    public PurchasePackageDTO(String 采购包名称, String name, String 采购包预算金额, double budgetAmount, String 采购包保证金金额, double marginAmount, String 内容, String content) {

        this.name = 采购包名称;

        this.budgetAmount = 采购包预算金额 != null ? Double.parseDouble(采购包预算金额.replace(",", "")) : 0;

        this.marginAmount = 采购包保证金金额 != null ? Double.parseDouble(采购包保证金金额.replace(",", "")) : 0;

        this.content = 内容;
    }
}
